<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
<script>
    const num = [11, 22, 3, 4, 5, [3,4,3], 55];
    console.log(num.flat());
    // let newNums = num.filter(function (n) {
    //     return n > 10
    // }).map(function (n) {
    //     return n * 2
    // }).reduce(function (preValue, n) {
    //     return preValue + n
    // }, 0);
    // console.log(newNums);
    // let qqq = num.filter(n => n > 10).map(n => n * 2).reduce((pre, n) => pre + n);
    // console.log(qqq);
    //
    // let a = num.map(n => n * 3).reduce((sum, n) => sum + n);
    // console.log(a);
</script>
</body>
</html>
